class CreateActualities < ActiveRecord::Migration
  def self.up
    create_table :actualities do |t|
      t.string :title
      t.text :content
      t.integer :user_id, :null => false, :null => false, :options => "CONSTRAINT fk_actualities_users REFERENCES users(id)" 

      t.timestamps
    end
  end

  def self.down
    drop_table :actualities
  end
end
